<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<!-- 样式设置 -->
<!-- 引入boostarp的样式 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/static/plugins/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<!-- 引入字体图标 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css">
<title>登录</title>
</head>

<body>

	<div class="container">
		<div class="panel panel-primary center-block" style="width: 500px;">

			<div class="panel-heading">
				<h3 class="panel-title">登陆</h3>
			</div>
			<div class="panel-body">
			
				<form class="form-horizontal" action="${pageContext.request.contextPath }/login" method="post">
					<div class="form-group">
						<div class="input-group col-md-offset-1 col-md-10">
							<span class="input-group-addon"> <i class="fa fa-user"></i>
							</span> <input class="form-control" name="account"
								placeholder="账号/邮箱/手机">
						</div>
					</div>
					<div class="form-group">
						<div class="input-group col-md-offset-1 col-md-10">
							<span class="input-group-addon"> <i class="fa fa-lock"></i>
							</span> <input class="form-control" name="password" type="password"
								placeholder="密码">
						</div>
					</div>
					<div class="form-group">
						<div class="input-group col-md-offset-1 col-md-10">
							<span class="input-group-addon"> <i
								class="fa fa-user-card"></i>
							</span> <input class="form-control" name="code" placeholder="验证码">
							<span class="input-group-addon" style="padding: 0;"> <img
								id="code" class="fa fa-user-card" src="/bbsdome/code"
								style="width: 100px;">
							</span>
						</div>
					</div>
					<div class="form-group">
						<div class="input-group col-md-offset-2 col-md-8">
							<input name="rember" type="checkbox"> 记住密码
						</div>
					</div>
					<div class="form-group">
						<div class="input-group col-md-offset-1 col-md-10">

							<input class="btn btn-primary btn-block" type="submit" value="登陆">
						</div>
					</div>
				</form>
			</div>
			<div class="panel-footer">
				<div class="row">
					<div class="col-md-12">
						<a href="/bbsdome/registe.html">没有账号，请点击注册</a> <a
							class="pull-right">忘记密码？</a>
					</div>
				</div>
			</div>
		</div>

	</div>



	<!-- 引入jQuery的js -->
	<script src="${pageContext.request.contextPath }/static/plugins/jquery-1.11.3.min.js"></script>
	<!-- 引入bootstrap的js -->
	<script
		src="${pageContext.request.contextPath }/static/plugins/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>

	<script type="text/javascript">
		$(function() {

			$('#code').click(
					function() {
						$(this).attr('src',
								'${pageContext.request.contextPath }/code?dc_=' + new Date().getTime());
					});

		});
	</script>
</body>

</html>